package com.cmhi.base.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.cmhi.base.R;

public class SettingDevInfoLayout extends LinearLayout {
    public SettingDevInfoLayout(Context context) {
        this(context, null);
    }

    public SettingDevInfoLayout(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
        LayoutInflater.from(context).inflate(R.layout.layout_setting_devinfo, this);
    }

    public SettingDevInfoLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public void setItemText(int resId, CharSequence text) {
        TextView textView = this.findViewById(resId);
        textView.setText(text);
    }
}
